﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="UserInfor.aspx.cs" Inherits="Web.UserInfor" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
   
    <style type="text/css">
        .auto-style1 {
            margin-right: 0px;
        }
        #iamge{
            margin-left:40%;
            margin-top:-3%;
        }
        *{
    margin:0px;
    padding:0px;
}
         #GridView1{
  
     margin-top:4%;
 }
   
.da{

    margin-top:2%;
    margin-left:2%;
}
.da1 {
    margin-left: 5%;
    margin-top: 2%;
}
.png{
   color:red;
}
.Label1 {
    margin-left: 2%;
    margin-top: 1%;
}
.Label2{
    margin-left:12%;
      margin-top: 2%;
}
.syy{
    margin-left:12%;
}
.tiaozhuan{
    margin-left:12%;
}
.wy{
    margin-left:5%;
}
    </style>
    </asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    
    
   <h1 class="da">用户信息</h1>
    <p class="da1">
        <asp:TextBox  ID="TextBox1" runat="server" Height="38px" placeholder="请输入需要搜索的用户姓名！" Width="533px"></asp:TextBox>

       
        <div id="iamge">
             <asp:ImageButton ImageUrl="~/Content/搜索.png" ID="ImageButton2" runat="server" CssClass="auto-style1" Height="38px" Width="33px" OnClick="ImageButton2_Click" />
        </div>
       

       

    </p>
    <div id="GridView1">
         <asp:GridView ID="GridView1" runat="server"   AutoGenerateColumns="False"  Height="16px" Width="1425px" OnRowDeleting="GridView1_RowDeleting" AllowPaging="True"  OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowUpdating="GridView1_RowUpdating" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" CssClass="auto-style1" PageSize="5" >
             <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="UsersID" HeaderText="用户编号" />
            <asp:BoundField DataField="UName" HeaderText="用户姓名" />
            <asp:BoundField DataField="UsersName" HeaderText="用户账号"  />
            <asp:BoundField DataField="UsersAge" HeaderText="用户年龄" />
            <asp:BoundField DataField="UsersSex" HeaderText="用户性别" />
            <asp:BoundField DataField="UsersPostbox" HeaderText="用户邮箱" />
            <asp:BoundField DataField="UsersPhone" HeaderText="用户电话" />
            <asp:BoundField DataField="Address" HeaderText="用户住址" />
             <asp:TemplateField HeaderText="操作">
     <ItemTemplate>
          <asp:Button runat ="server"  CommandName ="Delete" HeaderText="操作" ForeColor="Black" Height="40px" Width="100px"  OnClientClick ="return confirm('您确认要删除吗？')" Text ="删除" />
     </ItemTemplate>
</asp:TemplateField>
            <asp:CommandField HeaderText="操作" ShowEditButton="True" ButtonType="Button" >
            <ControlStyle ForeColor="Black" Height="50px" Width="70px" />
            </asp:CommandField>
        </Columns>
             <FooterStyle BackColor="#CCCC99" />
             <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
             <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
             <RowStyle BackColor="#F7F7DE" />
             <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
             <SortedAscendingCellStyle BackColor="#FBFBF2" />
             <SortedAscendingHeaderStyle BackColor="#848384" />
             <SortedDescendingCellStyle BackColor="#EAEAD3" />
             <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
        <p class="Label1">
              <asp:Label ID="Label1"  runat="server" Text="" ForeColor="Red"></asp:Label>
     
        &nbsp;
     
        </p>
         <p class="Label2">
              
              <asp:Button ID="Button1" CssClass="sy" runat="server" Text="首页" Width="69px" OnClick="Button1_Click" />

              <asp:Button ID="Button2"  CssClass="syy" runat="server" Text="上一页" Width="69px"   OnClick="Button2_Click"/>
            
                 <asp:Label ID="Label6"  CssClass="djy"  runat="server" Text="Label" ></asp:Label>
                <asp:Label ID="Label2" runat="server"   Text="/"></asp:Label>
              <asp:Label ID="Label8" runat="server"  CssClass="zongye" Text="Label"></asp:Label>
                 <asp:Button ID="Button5"  CssClass="" runat="server" Text="下一页" Width="69px" OnClick="Button5_Click" />
          
              
             
                    <asp:Label ID="Label9" runat="server"  CssClass="tiaozhuan" Text="请输入你跳转的页数:"></asp:Label>
              <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
              <asp:Button ID="Button3" runat="server" Text="跳转" Width="69px" OnClick="Button3_Click" />
           

              <asp:Button ID="Button4" CssClass="wy" runat="server" Text="尾页"  Width="85px" Height="33px" OnClick="Button4_Click"/>
     
        </p>
         
      
    </div>

   
    
   

</asp:Content>
